package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.YqgItemAssociationMapper;
import com.ruoyi.project.domain.YqgItemAssociation;
import com.ruoyi.project.service.IYqgItemAssociationService;

/**
 * 套餐项目关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-15
 */
@Service
public class YqgItemAssociationServiceImpl implements IYqgItemAssociationService 
{
    @Autowired
    private YqgItemAssociationMapper yqgItemAssociationMapper;

    /**
     * 查询套餐项目关联
     * 
     * @param id 套餐项目关联主键
     * @return 套餐项目关联
     */
    @Override
    public YqgItemAssociation selectYqgItemAssociationById(Long id)
    {
        return yqgItemAssociationMapper.selectYqgItemAssociationById(id);
    }

    /**
     * 查询套餐项目关联列表
     * 
     * @param yqgItemAssociation 套餐项目关联
     * @return 套餐项目关联
     */
    @Override
    public List<YqgItemAssociation> selectYqgItemAssociationList(YqgItemAssociation yqgItemAssociation)
    {
        return yqgItemAssociationMapper.selectYqgItemAssociationList(yqgItemAssociation);
    }

    /**
     * 新增套餐项目关联
     * 
     * @param yqgItemAssociation 套餐项目关联
     * @return 结果
     */
    @Override
    public int insertYqgItemAssociation(YqgItemAssociation yqgItemAssociation)
    {
        return yqgItemAssociationMapper.insertYqgItemAssociation(yqgItemAssociation);
    }

    /**
     * 修改套餐项目关联
     * 
     * @param yqgItemAssociation 套餐项目关联
     * @return 结果
     */
    @Override
    public int updateYqgItemAssociation(YqgItemAssociation yqgItemAssociation)
    {
        return yqgItemAssociationMapper.updateYqgItemAssociation(yqgItemAssociation);
    }

    /**
     * 批量删除套餐项目关联
     * 
     * @param ids 需要删除的套餐项目关联主键
     * @return 结果
     */
    @Override
    public int deleteYqgItemAssociationByIds(Long[] ids)
    {
        return yqgItemAssociationMapper.deleteYqgItemAssociationByIds(ids);
    }

    /**
     * 删除套餐项目关联信息
     * 
     * @param id 套餐项目关联主键
     * @return 结果
     */
    @Override
    public int deleteYqgItemAssociationById(Long id)
    {
        return yqgItemAssociationMapper.deleteYqgItemAssociationById(id);
    }
}
